#3
# def zsq_100(func):
#     def jia(a):
#         func(a)
#         a+=100
#         return a
#     return jia
#
# @zsq_100
# def b(a):
#     return a
# print(b(29))
locals()


# #4
# def add1(func):
#     def add_chongfu():
#         func()
#         for i in range(5):
#             i+=1
#             print(f"函数重复{i}次")
#     return add_chongfu()
# @add1
# def w():
#     pass
# print(w)

#5
a = ["asdad","adadasd","sadadadsdadad","asdadasdsad"]
# for i in a:
#     c=sorted(a,reverse=True)
#     print(c)

def paixu(func):
    def xius(a):
        func(a)
        c=sorted(a,key=len)

        d=sorted(a,key=len,reverse=True)
        return d,c

    return xius

        # continue
        # d=sorted(a)
        # return d
@paixu
def b(m):

    pass
x = b(a)
print(x)


# a = {10,20,30,40,50,"ni"}
# b=a.union({"hao"})
# print(b)
# a = {10,20,30,40,50}
# a.update([23,90,41])
# print(a)


#6

# def q(*arg):
#     print(sum(*arg))
# q((3,4,5))

#7
# a=0
# for i in r
# a=0
# a+=1
#
# counter=0
# def ziz():
#      def f():
#
#          global counter
#          counter+=1
#          return counter
#      return f

# @ziz
# def b():
#     pass
# a=b()
# c=ziz()
#
# print(c())
# print(c())
# print(c())
# print(c())

#
# def auto_num(func):
#     def set(num):
#         func(num)
#         num+=1
#         return num
#     return set
#
# @auto_num
# def num1(num):
#     print(f"传入的数字是：{num}")
#
#
# print(num1(1))
# print(num1(2))
# print(num1(4))










